package com.hzeport.bgs22emduty.outbound.db.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.PageInfo;
import com.hzeport.bgs22emduty.dto.DutydignInfoListDTO;
import com.hzeport.bgs22emduty.dto.DutydignInfoListoneDTO;
import com.hzeport.bgs22emduty.entity.DutyScheduleInfo;
import com.hzeport.bgs22emduty.vo.dutydignInfo.DutydignInfoListVO;
import com.hzeport.bgs22emduty.vo.dutydignInfo.DutydignInfoListoneVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.List;

/**
 * ${comments}
 *
 * @author code generator
 * @date 2022-12-02 11:21:59
 */
@Mapper
public interface DutyScheduleInfoMapper extends BaseMapper<DutyScheduleInfo> {

    List<DutydignInfoListoneVO> listone(DutydignInfoListoneDTO dutydignInfoListoneDTO);

    List<DutydignInfoListVO> listForCustom(DutydignInfoListDTO dutydignInfoListDTO);

    String getDtype(@Param("dutyTimesId") String dutyTimesId, @Param("id") String id);

    List<DutyScheduleInfo> getTimeDTOForNow(@Param("customnName") String customnName, @Param("today") LocalDate today, @Param("localTime") LocalTime localTime,@Param("yesterday") LocalDate yesterday);
}
